import random;
print(random.randint(1, 1000));
print(random.randint(1, 1000));
print(random.randint(1, 1000));
print(random.randint(1, 1000));
def outputnum(n):
	t=[];
	for i in range(0,n):
		t.append(random.randint(1, 100000))
	print (t)
	return t

y = outputnum(100000);
y.sort()
# print(y)